
add_compile_options("-funwind-tables")

set(ECT_SOURCE_FILES_CXX
    main.cc
    utils/string.cc
    utils/time.cc
    utils/logger/ILogger.cc
    utils/logger/Logger.cc
    utils/logger/StdLogger.cc
    readers/Reader.cc
    readers/WinSerialReader.cc
    apps/Application.cc
    apps/ect_random_data/Application.cc
)

set(ECT_LIBS
)

set(ECT_INCLUDE_DIRS
    .
)

add_executable(ElectricityConsumptionTerminal ${ECT_SOURCE_FILES_CXX})
target_link_libraries(ElectricityConsumptionTerminal ${ECT_LIBS})
target_include_directories(ElectricityConsumptionTerminal PRIVATE ${ECT_INCLUDE_DIRS})

install(TARGETS ElectricityConsumptionTerminal
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
    PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
)
